home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload Trio 2 / Shareware Overload Trio Volume 2 (Chestnut CD-ROM).ISO / dir36 / getkey16.zip / TEST2.BAT < prev    next >
DOS Batch File  |  1993-08-20  |  871b  |  34 lines

  1. @echo off
  2. REM This test file is an example of how you may use GETKEY
  3. REM Notice that if you add 128 to forground or highlight
  4. REM the characters blink.
  5. REM The menu items control what keys are valid making the /c option 
  6. REM unnecessary. 
  7. REM Notice also how the /t switch controls the program if the
  8. REM user fails to respond within 10 seconds.
  9.  
  10. :Start
  11.  
  12. getkey/n /d:3,15,142 /m20,7"~2. ~Editor"/m20,9"~3. ~Format"/m20,5"~1. ~AntiVirus"/m20,11"~4. ~Quit" "Choose an option "/tq,10 
  13. REM Take into consideration we have _two_ keys to choose from in each menu 
  14. if errorlevel 7 if not errorlevel 9 goto End
  15. if errorlevel 5 if not errorlevel 7 goto Fmt
  16. if errorlevel 3 if not errorlevel 5 goto Edit
  17. if errorlevel 1 if not errorlevel 3 goto CPAV
  18.  
  19. :Edit
  20. edit
  21. goto Start
  22.  
  23. :CPAV
  24. D:\PCTOOLS\CPAV
  25. goto Start
  26.  
  27. :Fmt
  28. call fmt.bat
  29. goto Start
  30.  
  31. :End
  32. cls
  33.  
  34.